{% if video.type == "youtube" %}
  <iframe id="ytplayer" type="text/html" width="818" height="460"
          src="{{ video.url }}?autoplay=1&mute=1&modestbranding=1" frameborder="0"></iframe>
{% elif video.type == "vimeo" %}
  <iframe id="vimeoplayer" width="818" height="460" frameborder="0"
          webkitallowfullscreen mozallowfullscreen allowfullscreen
          src="{{ video.url }}?title=0&byline=0&portrait=0&transparent=0"></iframe>
{% elif video.type == "asciinema" %}
  <script src="{{ video.url }}" id="asciicast-{{ video.id }}" async data-autoplay="1" data-preload="0"></script>
{% endif %}